package com.example.myapplication.guide

import android.content.Context
import android.view.View
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.databinding.DataBindingUtil
import com.example.myapplication.R
import com.example.myapplication.databinding.ViewGuideDoubleClickBinding
import com.example.myapplication.databinding.ViewGuideSlideUpBinding

/**
 * @description: 上滑切换直播间
 *
 * @author: wangrongfeng
 *
 * @create: 2023-05-06 18:06
 **/
class GuideSlideUPView(context: Context) : ConstraintLayout(context) {
    var binding : ViewGuideSlideUpBinding? = null


    init {
        binding = DataBindingUtil.bind(View.inflate(context, R.layout.view_guide_slide_up, this))
    }

    fun playAnimation(){
        binding!!.lottieAnimation.playAnimation();
    }
    fun cancelAnimation() {
        binding!!. lottieAnimation.cancelAnimation();
    }

}